home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / CPlus.Dev$ 12⁄22⁄89 / CPlusXCMDGlue.c < prev    next >
Encoding:
Text File  |  1989-11-04  |  379 b   |  21 lines  |  [TEXT/MPS ]

  1. // because C++ calls new and delete inside of
  2. // constructors (unnecessarily, near as I can
  3. // figure), we declare do nothing versions
  4. // of global operator new and global operator
  5. // delete here, so the linker doesn't barf.
  6.  
  7. #include <Memory.h>
  8.  
  9. void *__nw__FUi(unsigned int size)
  10. {
  11.     Ptr ptr;
  12.  
  13.     ptr = NewPtr(size);
  14.     return ptr;
  15. }
  16.  
  17. void __dl__FPv(void *obj)
  18. {
  19.     DisposPtr(obj);
  20. }
  21.